{template "mheader.html"}

<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {$form}
    <div class="row myfbody">
        <div class="col-md-12">

            <div class="portlet light bordered">
                <div class="portlet-title tabbable-line">
                    <ul class="nav nav-tabs" style="float:left;">
                        {loop $top_nav $i $t}
                        <li class="{if $mvalue==$i}active{/if}">
                            <a href="{dr_member_url('fclient/home/'.$i)}&id={$id}"> <i class="{$t.icon}"></i> {$t.name} </a>
                        </li>
                        {/loop}
                    </ul>

                    <div class="actions">
                        <div class="btn-group">
                            <a class="btn" href="{$reply_url}"> <i class="fa fa-mail-reply"></i> {dr_lang('返回列表')}</a>
                        </div>
                    </div>
                </div>
                <div class="portlet-body">
                    <div class="form-body">



                        <div class="form-group" id="dr_row_name">
                            <label class="col-md-2 control-label ">网站名称</label>
                            <div class="col-md-9">
                                <label><input type="text" class="form-control input-large" id="dr_name" name="data[name]" value="{$name}"></label>
                                <span class="help-block"> 网站名称，便于查找 </span>
                            </div>
                        </div>

                        <div class="form-group" id="dr_row_domain">
                            <label class="col-md-2 control-label ">网站域名</label>
                            <div class="col-md-9">
                                <label><input type="text" class="form-control input-large" id="dr_domain" name="data[domain]" value="{$domain}"></label>
                                <span class="help-block"> 域名必须以https或http开头，不得包含子目录 </span>
                            </div>
                        </div>

                        <div class="form-group" id="dr_row_sn">
                            <label class="col-md-2 control-label ">通信密钥</label>
                            <div class="col-md-9">
                                <input type="text" class="form-control" id="dr_sn" name="data[sn]" value="{$sn}">
                                <span class="help-block"> 变更通讯密钥后，需要重新下载客户端通信程序 </span>
                            </div>
                        </div>

                        <div class="form-group" id="dr_row_money">
                            <label class="col-md-2 control-label ">续费价格</label>
                            <div class="col-md-9">
                                <p class="form-control-static"> ¥{$money}/年 </p>
                            </div>
                        </div>

                        <div class="form-group" id="dr_row_status">
                            <label class="col-md-2 control-label ">状态</label>
                            <div class="col-md-9">
                                <p class="form-control-static"> {dr_fstatus($status)} </p>
                                {if $status != 2} <p> {$setting.note} </p> {/if}
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label ">&nbsp;</label>
                            <div class="col-md-9">
                                <label><button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000')" class="btn green"> <i class="fa fa-save"></i> {dr_lang('保存配置')}</button></label>
                            </div>
                        </div>


                    </div>
                </div>
            </div>

        </div>

    </div>

</form>

{template "mfooter.html"}